$(document).foundation();

$(function(){
	$('#form-feedback .title').click(function(){
		$('#form-feedback').toggleClass('hide-form-feedback');
	});
});

function validateForm(xhr, status, args, dlgId) {
    if (args.validationFailed) 
    	$('#'+dlgId).foundation('reveal', 'open');
    else {
    	$('#'+dlgId).foundation('reveal', 'close');
    	window.location.href = window.location.href;	
    }
}